// model/recipe_state.dart

import 'package:casdon/modules/recipe/data/model/recipe_search_model.dart';

class RecipeSearchListState {
  final List<RecipeSearchModel> data;
  final int pageNum;

  RecipeSearchListState copyWith({
    List<RecipeSearchModel>? data,
    int? pageNum,
  }) {
    return RecipeSearchListState(
      data: data ?? this.data,
      pageNum: pageNum ?? this.pageNum,
    );
  }

  factory RecipeSearchListState.initial() =>
      RecipeSearchListState(data: [], pageNum: 0);

  RecipeSearchListState({this.pageNum = 0, required this.data});
}
